package com.dsteiner.xelavos.client.event;

import com.dsteiner.widgets.client.event.Event;
import com.dsteiner.xelavos.client.model.MainTabModel.Tab;

public class TabSelectionEvent implements Event {

	private Tab tab;
	private boolean programmatically; 

	public TabSelectionEvent(Tab tab) {
		this.tab = tab;
	}
	public TabSelectionEvent(Tab tab, boolean programmatically) {
		this.tab = tab;
		this.programmatically = programmatically;
	}

	public Tab getTab() {
		return tab;
	}
	public boolean isProgrammatically() {
		return programmatically;
	}
}
